﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using foursquare.Foursquare;

namespace foursquare.Forms
{
    public partial class AddTipView : Form
    {
        private int _vid;

        public AddTipView(int vid)
        {
            InitializeComponent();
        }

        private void btnAdd_Click(object sender, EventArgs e)
        {
            string type = "Tip";

            if (btnTip.Checked)
                type = "Tip";
            else if (btnTask.Checked)
                type = "Task";
            Tip t = FS.AddTip(_vid,
                txtText.Text,
                type);

            Close();
        }
    }
}